package principle.proxy;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class client {
    public static void main(String[] args) {
        //创建被代理对象
        TheachDao teacherDao = new TheachDao();
        //创建代理对象
        TheachDao dao = (TheachDao) new proxyFactoryPlus(teacherDao).getProxyInstance();
        dao.teach();
    }
}
